package org.domain.sigepac.validator;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.hibernate.validator.ValidatorClass;

@Target({ElementType.FIELD,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@ValidatorClass(DataMinimaValidator.class)
public @interface DataMinima {
	 String message() default "Apenas maiores de 18 anos!";
	 int anos() default 18;


}
